package com.example.restful.api;

import lombok.*;

/**
 * Copyright(C), 2020-2021, AmbroseCdMeng
 * FileName:    Response
 * Author:      AmbroseCdMeng
 * Date:        2021/2/116:34
 * Description: 实现返回对象实体
 * History:
 * <author>     <time>      <version>       <desc>
 * 作者姓名     修改时间        版本号           描述
 */
@Data
@NoArgsConstructor
public class Response {
    /* 返回信息码 */
    private String rspCode = "200";
    /* 返回信息内容 */
    private String rspMsg = "操作成功";

    public Response( ExceptionMsg msg) {
        this.rspCode = msg.getCode();
        this.rspMsg = msg.getMessage();
    }
}
